package com.credithc.signature.job.constant;

/**
 * @desc: <br/>
 * @author: Jingbo Hu<br/>
 * @time：2021年07⽉30⽇<br/>
 * @version：v1.0.0<br>
 */
public enum SignStatus {
    UNHANDLE(0, "未处理"), PROCESSING(1, "处理中"), SUCCESS(2, "处理成功"), FAILURE(3, "处理失败");

    private int status;
    private String value;

    SignStatus(int status, String value) {
        this.status = status;
        this.value = value;
    }

    public static String getName(int status) {
        for (SignStatus st : SignStatus.values()) {
            if (st.getStatus() == status) {
                return st.getValue();
            }
        }
        return null;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
